﻿using System.Web.Mvc;

namespace SRF.Web.Areas.Admin
{
    public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            //context.MapRoute(
            //   "Admin",
            //   "admin/{controller}/{action}/{id}",
            //   new { action = "list", id = UrlParameter.Optional }
            //);
            context.MapRoute(
               "Admin_Default",
               "admin/{controller}/{action}/{id}",
               new { id = UrlParameter.Optional }
            );
        }
    }
}